<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/person.css" />
        <script src="js/jquery-3.3.1.min.js"></script>
         <script src="js/config.js"></script>
	
		<title>个人中心</title>
		
	</head>
	<body>
	<div class="page">
		<div class="top">
			<div>
				<h4>个人中心</h4>
			</div>
		</div>
		
		<div class="container">
			<div class="user-account">
				<div class="my-account">我的资产</div>
				<div class="avatar">
					<img class="headImg" src="./images/avatar.png" alt="" />
				</div>
				
				<div class="income">
					<span class="account-money">0.00</span>
					<img src="./images/yuan.png" alt="" />
				</div>
				
				<div class="withdraw-progress">
					<span>有</span>
					<span class="tixian">0</span>
					<span>笔提现</span>
					<img src="./images/left-btn.png" alt="" />
					
				</div>
				
				<div class="division"></div>
			</div>
			
			
			<div class="withdraw">
				<div class="withdraw-item">
					<div class="withdraw-btn">
						立即提现
					</div>
				</div>
			</div>
			
			<div class="account-related">
				<div class="related">账户相关</div>
				<div class="action-type">
					<div class="action-btn-center mingxi ">
						<img src="./images/mingxi.png" alt="" />
						<div>收入明细</div>
					</div>
					
					<div class="action-btn-center account-set">
						<img src="./images/setting.png" alt="" />
						<div>账户设置</div>
					</div>
					
					<!--<div class="action-btn-center">
						<img src="./images/help.png" alt="" />
						<div>帮助中心</div>
					</div>
					
					<div class="action-btn-center">
						<img src="./images/message.png" alt="" />
						<div>消息中心</div>
					</div>-->
					
					<div class="action-btn-center about">
						<img src="./images/about.png" alt="" />
						<div>关于大钞市</div>
					</div>
					
					<!--<div class="action-btn-center">
						<img src="./images/enter.png" alt="" />
						<div>大钞市入口</div>
					</div>-->
					<div class="action-btn-center toggle">
						<img src="./images/toggle.png" alt="" />
						<div>切换账号</div>
					</div>
					
					
				</div>
				
				<div class="action-type">
					
					
					
					
					
				</div>
				
			</div>
		</div>
	</div>
	
	
	
	
	<script>
		
		//点击立即体现跳转
		
		$(".withdraw-btn").eq(0).click(function(){
			window.location.href="./tixianway.html"
		})
		
		//点击账户设置的跳转
        $(".account-set").eq(0).click(function(){
            window.location.href="./account.html"
        })


		//点击收入明细设置
		$(".mingxi").eq(0).click(function(){
			window.location.href="./tixian.html"
		})
		
		//点击切换账号的跳转
		
		$(".toggle").eq(0).click(function(){
			window.location.href="./toggle.html"
		})

        //点击关于大钞市的跳转

        $(".about").eq(0).click(function(){
            window.location.href="./about.html"
        })


        //点击有几笔提现的跳转

        $(".withdraw-progress").eq(0).click(function(){
            window.location.href="./tixianList.html"
        })


	//	获取用户的头像
		$.ajax({
            url : host +"/buss/user/info",
            type : "get",
			success:function(res){
                if(res.data.headImg !==null && res.data.headImg>0){
                    var headImg = res.data.headImg;
                }
                var account = res.data.account;
                var tixian = res.data.tixian;
                $(".headImg").eq(0).attr('src',headImg)
                $(".account-money").eq(0).html(account)
                $(".tixian").eq(0).html(tixian)
			},
			error:function(){
                console.log("shibai")
			}
		})
	</script>
	</body>
</html>
